package com.liuzh.deviceinfo.view;

import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.constraintlayout.widget.ConstraintLayout;
import c.f.a.a.a.a;
import c.h.a.m0.h;
import c.h.a.q;

public class MoreAppsItemView extends ConstraintLayout {
    public String t;

    public MoreAppsItemView(Context context, AttributeSet attributeSet) {
        super(context, attributeSet, 0);
        int t = h.t(12.0f, getResources().getDisplayMetrics());
        int t2 = h.t(8.0f, getResources().getDisplayMetrics());
        setPadding(t, t2, t, t2);
        setFocusable(true);
        setClickable(true);
        setBackground(a.o(getContext(), 16843534));
        TypedArray obtainStyledAttributes = getContext().obtainStyledAttributes(attributeSet, q.c);
        String string = obtainStyledAttributes.getString(2);
        String string2 = obtainStyledAttributes.getString(0);
        this.t = obtainStyledAttributes.getString(3);
        Drawable drawable = obtainStyledAttributes.getDrawable(1);
        obtainStyledAttributes.recycle();
        ViewGroup.inflate(getContext(), 2131493002, this);
        TextView textView = (TextView) findViewById(2131296677);
        TextView textView2 = (TextView) findViewById(2131296676);
        ((ImageView) findViewById(2131296675)).setImageDrawable(drawable);
        textView.setText(string);
        textView2.setText(string2);
        setOnClickListener(new c.h.a.n0.a(this));
    }
}
